package com.ant.storage.mapper;

import com.ant.storage.pojo.InventoryCheck;
import com.ant.storage.pojo.InventoryCheckCommodity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface InventoryCheckMapper extends BaseMapper<InventoryCheck>{
    /**
     * 盘点库存单中间表增加
     * @param inventory_check_id
     * @param inventoryCheckCommodity
     */
    void addInventoryCheckCommodity(Integer inventory_check_id,@Param("ICC") InventoryCheckCommodity inventoryCheckCommodity);

    /**
     * 中间表删除
     * @param inventory_check_id
     */
    void deleteInventoryCheckCommodity(Integer inventory_check_id);

    /**
     * 盘点库存单查询
     * @param page
     * @param limit
     * @param map
     * @return
     */
    List<InventoryCheck> queryInventoryCheck(Integer page, Integer limit,@Param("map") Map map);

    /**
     * 盘点库存统计
     * @param map
     * @return
     */
    Integer countInventoryCheck(@Param("map") Map map);
}
